package com.viknix.threadpool.manager.client.model;

import com.viknix.threadpool.manager.client.enums.MessageTypeEnum;
import lombok.Builder;
import lombok.Data;

/**
 * @Author: Dongqi
 * @Date: 2021/11/7 15:48
 * @Version 1.0
 * @Description:
 */
@Data
@Builder
public class AlertorDTO {

    /**
     * 线程池 Id
     */
    private String threadPool;

    /**
     * 推送报警类型
     */
    private MessageTypeEnum typeEnum;

    /**
     * 构建线程池报警标识
     *
     * @return
     */
    public String buildIdentifier() {
        return threadPool + "_" + typeEnum;
    }
}
